import { createRouter, createWebHistory } from 'vue-router'
// @ts-ignore
import Login from "../views/Login.vue";

// @ts-ignore
// @ts-ignore
// @ts-ignore
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Login
    }
  ]
})

//全局路由守卫
router.beforeEach((to, from) =>{
         console.log("to......"+to)
         console.log('from--->'+from)
         return true;
})
export default router
